﻿public class Student {
    private int _id;

    public int Id {
        get => _id;
        set {
            Console.WriteLine($"value: {value}");
            _id = value;
        }
    }
}

public class Program {
    public static void Main() {
        var student = new Student();
        student.Id = 100;
    }
}